package com.seeyon.apps.ssoAndDoc.dao.impl;

import com.seeyon.apps.ssoAndDoc.dao.DownLoadContentDao;
import com.seeyon.ctp.common.po.content.CtpContentAll;
import com.seeyon.ctp.util.DBAgent;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class DownLoadContentDaoImpl implements DownLoadContentDao {

	@Override
	public List<CtpContentAll> getContentListByModuleId(Long moduleId) {
		List<CtpContentAll> contentList = new ArrayList<CtpContentAll>();
        Map<String,Object> params = new HashMap<String,Object>();
        params.put("moduleId", moduleId);
        String hql =" from CtpContentAll c  where c.moduleId=:moduleId order by c.sort asc";
        contentList = DBAgent.find(hql, params);
		return contentList;
	}

}
